import Router from 'koa-router';
import MaterialController from "../../controller/materialController";
import DlyMaterialController from '../../controller/dlyadmin/materialController'

const router = new Router();

router.prefix('/api/material');

router
   /**
    * @swagger
    * /api/material/queryMaterialDetail:
    *   get: 
    *     description: 获取素材详情 
    *     tags: [素材] 
    *     summary: "获取素材详情"
    *     parameters:
    *     produces: 
    *       - application/json 
    *     responses: 
    *       200:
    *         description: 获取数据列表 
    * */
   .get('/queryMaterialDetail', MaterialController.queryMaterialDetail)
   /**
      * @swagger
      * /api/material/searchMaterial:
      *   post: 
      *     description: 批量查询素材详情 
      *     tags: [素材] 
      *     summary: "批量查询素材详情"
      *     parameters:
      *     produces: 
      *       - application/json 
      *     responses: 
      *       200:
      *         description: 获取数据列表 
      * */
   .post('/searchMaterial', MaterialController.searchMaterial)

   /**
      * @swagger
      * /api/material/getCapInfo:
      *   post: 
      *     description: 查询容量 
      *     tags: [素材] 
      *     summary: "查询容量"
      *     parameters:
      *     produces: 
      *       - application/json 
      *     responses: 
      *       200:
      *         description: 获取数据列表 
      * */
   .get('/getCapInfo', MaterialController.getCapInfo)
   /**
        * @swagger
        * /api/material/marketingList:
        *   post: 
        *     description: 获取边框，图标 
        *     tags: [素材] 
        *     summary: " 获取边框，图标 "
        *     parameters:
        *     produces: 
        *       - application/json 
        *     responses: 
        *       200:
        *         description: 获取数据列表 
        * */
   .get('/marketingList', DlyMaterialController.get)

   /**
       * @swagger
       * /api/material/batchUploadVideoAsync:
       *   post: 
       *     description: 上传视频 
       *     tags: [素材] 
       *     summary: " 上传视频 "
       *     parameters:
       *     produces: 
       *       - application/json 
       *     responses: 
       *       200:
       *         description: 获取数据列表 
       * */
   .post('/batchUploadVideoAsync', MaterialController.batchUploadVideoAsyncRouter)
   /**
       * @swagger
       * /api/material/mGetPlayInfo:
       *   post: 
       *     description: 上传视频 
       *     tags: [素材] 
       *     summary: " 上传视频 "
       *     parameters:
       *     produces: 
       *       - application/json 
       *     responses: 
       *       200:
       *         description: 获取数据列表 
       * */
   .post('/mGetPlayInfo', MaterialController.mGetPlayInfo)
   /**
    * @swagger
    * /api/material/deleteAllFolder:
    *   post: 
    *     description: 删除所有文件夹 
    *     tags: [素材] 
    *     summary: " 删除所有文件夹 "
    *     parameters:
    *     produces: 
    *       - application/json 
    *     responses: 
    *       200:
    *         description: 获取数据列表 
    * */
   .post('/deleteAllFolder', MaterialController.deleteAllFolder)


export default router;